﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Web.Prop;

namespace Web.UserControls
{
    public partial class Menu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (((USER) Session["UserInfo"]).AUTH == ((Int32) Core.Authorize.Admin).ToString())
            {
                litModuleReportMenagement.Visible = true;
                litModulePrintReport.Visible = true;
                litModuleSale.Visible = true;
                litModuleReservation.Visible = true;
                litModuleManagement.Visible = true;
                litModuleSecurity.Visible = true;
                liModuleAdministration.Visible = true;
                litModuleProfile.Visible = true;
            }
            else if (((USER) Session["UserInfo"]).AUTH == ((Int32) Core.Authorize.User).ToString())
            {
                litModuleReportMenagement.Visible = false;
                litModulePrintReport.Visible = false;
                litModuleSale.Visible = false;
                litModuleManagement.Visible = false;
                litModuleSecurity.Visible = false;
                liModuleAdministration.Visible = false;
                //
                litModuleReservation.Visible = true;
                litModuleProfile.Visible = true;
            }
            else
            {
                litModuleReportMenagement.Visible = false;
                litModulePrintReport.Visible = false;
                litModuleSale.Visible = false;
                litModuleManagement.Visible = false;
                litModuleSecurity.Visible = false;
                liModuleAdministration.Visible = false;
                //
                litModuleReservation.Visible = false;
                litModuleProfile.Visible = false;
            }
        }
    }
}